export interface CatagoryResponseData {
  code: number
  message: string
  ok: boolean
}

export interface Category {
  id: number
  name: string
  category1Id?: number
  category2Id?: number
}

export type list = Category[]

export interface CategoryData extends CatagoryResponseData {
  data: list
}

export interface AttrValue {
  id?: number
  valueName: string
  attrId?: number
  flag?: boolean
}

export interface Attr {
  id?: number
  attrName: string
  categoryId: number | string
  categoryLevel: number
  attrValueList: AttrValue[]
}

export interface CategoryListData extends CatagoryResponseData {
  data: Attr[]
}
